﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="XemLuong.aspx.cs" Inherits="ChamCong.Admin.XemLuong" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        Phòng Ban :
        <asp:DropDownList ID="drPhongBan" runat="server" DataSourceID="DSPhongban" DataTextField="TenPB"
            DataValueField="MaPB">
        </asp:DropDownList>
        <asp:ObjectDataSource ID="DSPhongban" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.PhongBanBLL">
        </asp:ObjectDataSource>
        Họ Tên:
        <asp:TextBox ID="txtNhanVien" runat="server"></asp:TextBox>
        Năm:
        <asp:TextBox ID="txtNam" runat="server" Width="100px"></asp:TextBox>
        Tháng:
        <asp:DropDownList ID="drThang" runat="server" Width="100px">
            <asp:ListItem Value="1">Tháng 1</asp:ListItem>
            <asp:ListItem Value="2">Tháng 2</asp:ListItem>
            <asp:ListItem Value="3">Tháng 3</asp:ListItem>
            <asp:ListItem Value="4">Tháng 4</asp:ListItem>
            <asp:ListItem Value="5">Tháng 5</asp:ListItem>
            <asp:ListItem Value="6">Tháng 6</asp:ListItem>
            <asp:ListItem Value="7">Tháng 7</asp:ListItem>
            <asp:ListItem Value="8">Tháng 8</asp:ListItem>
            <asp:ListItem Value="9">Tháng 9</asp:ListItem>
            <asp:ListItem Value="10">Tháng 10</asp:ListItem>
            <asp:ListItem Value="11">Tháng 11</asp:ListItem>
            <asp:ListItem Value="12">Tháng 12</asp:ListItem>
        </asp:DropDownList>
        <asp:Button ID="btnXem" class="button" runat="server" Text="Xem" Width="60px" OnClick="btnXem_Click" />
        <asp:Button ID="btnAll" class="button" runat="server" Text="Xem Tất Cả" Width="100px" OnClick="btnAll_Click" />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
<%--        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="dgvBangLuong" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="MaNV" HeaderText="Mã" SortExpression="MaNV" >
                        <HeaderStyle Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TenNV" HeaderText="Họ Tên" SortExpression="TenNV" />
                        <asp:BoundField DataField="CongLamViec" HeaderText="Công" 
                            SortExpression="CongLamViec" />
                        <asp:BoundField DataField="LuongLamViec" HeaderText="Lương" 
                            SortExpression="LuongLamViec" >
                        <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CongTangCa" HeaderText="Công TC" 
                            SortExpression="CongTangCa" />
                        <asp:BoundField DataField="LuongTangCa" HeaderText="Lương TC" 
                            SortExpression="LuongTangCa" >
                        <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LuongPhuCap" HeaderText="Phụ Cấp" 
                            SortExpression="LuongPhuCap" >
                        <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TongLuong" HeaderText="Tổng Lương" 
                            SortExpression="TongLuong" >
                        <HeaderStyle Width="80px" />
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
                <asp:Label ID="lbThongBao" runat="server" ></asp:Label>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button ID="ExportToExcel" runat="server" Text="Xuất File Excel" 
            onclick="ExportToExcel_Click" />--%>

        <rsweb:ReportViewer ID="repv" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
            WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="775px">
        </rsweb:ReportViewer>
    </div>
</asp:Content>
